<?php
function OpenContent($fname)
{
	
	if(file_exists($fname))
	{
		$fp = fopen($fname,"r");
		$nm=filesize($fname);
		$content=$nm?fread($fp, $nm):"";
		fclose($fp);
		return $content;
	}else echo "<!-- Error:no such content:{$fname})-->";
	return "";

}
function GetParam($name)
{
	if(isset($_GET[$name]))
		return htmlspecialchars($_GET[$name]);
	else
	if(isset($_POST[$name]))
		return htmlspecialchars($_POST[$name]);
	return null;
}
?>